package com.blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.blog.util.laydto.LayDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("sys_menu")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysMenu {

    @TableId
    private Long id;

    private String title;

    private String icon;

    private String href;

    private String target;

    private Long parentId;

    private String perms;

    private String menuType;

    private Integer orderNum;

    private Integer visible;

    private String createBy;

    /**
     * 身份类型，赋予普通用户权限
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private String remark;
}
